<?php
/**
 * Template Name: search  
 *
 * 通用的footer
 * date:2011/3/28  
 * @author yuyue 
 * 
 */
get_header(); 
			 
?>


            <div id="sidebr">
            	当前位置:&nbsp;&rArr;&nbsp;<a href="http://www.youxisoso.com" target="_blank">首页</a> &nbsp;&rArr;&nbsp;<span>游戏搜索</span>
            </div>
            <div id="conter" style="border-top:3px solid #fc6; ">
            	<div id="conter-left">
                	<span class="xinxi">共搜索到1000相关游戏</span>
                    <ul>
                    <?php 
		                    //用meta_key查自定义栏目 
						//cat查
						$paged = $_GET["paged"]; 
					    $args = array ('paged'=>$paged,"orderby"=>"date");	
                      
                        
						query_posts($args);
						while (have_posts()) : the_post(); 
						   // get game image by user defined
						   $image = get_post_meta($post->ID, 'GamePic', true);  
					?>
                    	<li>
                        	<a href="<?php the_permalink(); ?>" target="_blank"><img src="<?php echo $image ?>" width="104" height="79" class="f_l" alt="<?php echo the_title(); ?>" title="<?php echo the_title(); ?>" /></a>
                            <h3><a href="<?php the_permalink(); ?>" target="_blank" class="linkstyle02"><?php echo the_title(); ?></a></h3>
                            <p>
                            <?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 150,"…"); ?>
                             </p>
                            <span>游戏源地址:<a href="http://www.youxisoso.com">http:www.youxisoso.com</a></span>
                            <font color="#333" class="fontcolor">类别：<font color="#007acc"> <?php echo the_category();?></font></font>
                        </li>
                        
                      	<?php
								//echo the_title();  
							endwhile;
						?>
                        
                    </ul>
                </div>
                <!-- conter-left end  -->
                <div id="conter-right">
                	<h4>推荐游戏</h4>
                    <div class="hot">
                    	<a href="#" target="_blank"><img src="images/fot-01.gif" class="postt" />
                        <img src="images/game-photo.jpg" width="104" height="79" alt="应该显示游戏名" title="应该显示游戏名" border="0"/>
                        街头霸王II,街头霸
                        </a>
                    </div>
                    <div class="hot">
                    	<a href="#" target="_blank"><img src="images/fot-02.gif" class="postt" />
                        <img src="images/game-photo.jpg" width="104" height="79" alt="应该显示游戏名" title="应该显示游戏名" border="0"/>
                        街头霸王II,街头霸
                        </a>
                    </div>
                    <div class="hot">
                    	<a href="#" target="_blank"><img src="images/fot-03.gif" class="postt" />
                        <img src="images/game-photo.jpg" width="104" height="79" alt="应该显示游戏名" title="应该显示游戏名" border="0"/>
                        街头霸王II,街头霸
                        </a>
                    </div>
                    <div class="hot">
                    	<a href="#" target="_blank"><img src="images/fot-04.gif" class="postt" />
                        <img src="images/game-photo.jpg" width="104" height="79" alt="应该显示游戏名" title="应该显示游戏名" border="0"/>
                        街头霸王II,街头霸
                        </a>
                    </div>
                    <h4>热门游戏</h4>
                    <ul> 
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                    	<li><a href="#" target="_blank" class="linkstyle01">HOTBB霜给你新色彩</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">美丽日记给皮肤美起来</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">支持国货，美白又漂亮</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">Megan白牙新发现！</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">宅急送：修护你的肌肤</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">美丽日记给皮肤美起来</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">支持国货，美白又漂亮</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">Megan白牙新发现！</a></li>
                        <li><a href="#" target="_blank" class="linkstyle01">宅急送：修护你的肌肤</a></li>
                    </ul>
                </div>
                <!-- conter-right end  -->
                <!-- 
                <div id="scroll">
                	<a href="#" target="_blank"><img src="images/next-top.gif" alt="上一页" title="上一页" class="f_l"/></a>
                    <font class="linknone">1</font>
                    <a href="#" target="_blank" class="linkstyle03">2</a>
                    <a href="#" target="_blank" class="linkstyle03">3</a>
                    <a href="#" target="_blank" class="linkstyle03">4</a>
                    <a href="#" target="_blank" class="linkstyle03">5</a>
                    <a href="#" target="_blank" class="linkstyle03">6</a>
                    <a href="#" target="_blank" class="linkstyle03">7</a>    
                    <a href="#" target="_blank"><img src="images/next-bottom.gif" alt="下一页" title="下一页" class="f_l" /></a>
                </div>
                 -->
                 
					<div class="postnav">
						<?php if(function_exists('wp_pagenavi')){
							wp_pagenavi(); 
						} else {
							 ?>
					  <div class="prev">
					  <?php next_posts_link(__('« Previous Entries')) ?>
					  </div><div class="next"><?php previous_posts_link(__('Next Entries »')) ?></div> <?php } ?></div> 
					</div>
                <!-- scroll end -->
           
            <!-- conter  end -->
 <?php get_footer(); ?>

